wxFrame is a class derived from wxWindow. You must use a wxFrame as your top level window.
The parameters for creating a
wxFrame are:
- atom parent
- atom id
- sequence title
- integer x [ = -1]
- integer y [ = -1]
- integer cx [ = -1]
- integer cy [ = -1]
- atom style [ = wxDEFAULT_FRAME_STYLE]
- wxSTAY_ON_TOP
- wxICONIZE
- wxMINIMIZE
- wxMAXIMIZE
- wxSYSTEM_MENU
- wxMINIMIZE_BOX
- wxMAXIMIZE_BOX
- wxTINY_CAPTION_HORIZ
- wxTINY_CAPTION_VERT
- wxRESIZE_BORDER
- wxDIALOG_NO_PARENT Don't make owned by apps top window
- wxFRAME_NO_TASKBAR No taskbar button (MSW only)
- wxFRAME_TOOL_WINDOW No taskbar button, no system menu
- wxFRAME_FLOAT_ON_PARENT Always above its parent
- wxFRAME_SHAPED Create a window that is able to be shaped
All items with a default value are optional, although you must supply both x and y, or both
cx and cy if you supply either one.
code
ex:
constant myFrame = create( wxFrame, {0, -- has no parent
-1, -- wxWidgets will create an id
"myFrame", -- will be dispayed as the caption
-1, -- start at default x position
-1, -- start at default y position
300, -- 300 wide
200}) -- 200 tall
-- no style supplied means will be default style
endcode
If there is only one child of a frame, that child will be automatically resized
(by wxWidgets) to the client rect of the frame.
proc raise_window( atom window )
proc set_icon( atom frame, atom icon )
proc show_fullscreen( atom frame, integer show, integer flags )
proc show_window( atom window, integer show )
Parent Topics:
Classes
Controls
wxWindow
Subtopics:
wxCursor
wxMDIParentFrame
wxStatusBar
Category: wxFrame
Bring a window to the front of the screen.
See Also:
set_icon,
show_fullscreen,
show_window
Category: wxFrame
This sets the icon beside of the text in a wxFrame. The image type
cannot be a BM_XPM and it is suggested that a wxIcon be used for
the image. The image should be 16 by 16.
See Also:
raise_window,
show_fullscreen,
show_window
[proc]
show_fullscreen ( atom frame, integer show, integer flags )
Category: wxFrame
- show 1 to make the frame full screen, 0 to restore to normal
- flags should be one or more of the following wx_or_all()'d together:
- wxFULLSCREEN_NOMENUBAR
- wxFULLSCREEN_NOTOOLBAR
- wxFULLSCREEN_NOSTATUSBAR
- wxFULLSCREEN_NOBORDER
- wxFULLSCREEN_NOCAPTION
- wxFULLSCREEN_ALL (all of the above)
The wxWidgets documentation warns that this function hasn't been tested on
wxMDIParentFrame s, but it seems to work fine under Windows.
See Also:
raise_window,
set_icon,
show_window
Category: wxFrame
Sets a frame invisible if show is 0. If show is 1, then it makes the window visible if it is not,
otherwise it does nothing.
See Also:
raise_window,
set_icon,
show_fullscreen